// Copyright 2021 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// ignore_for_file: avoid_init_to_null

import 'package:flutter/material.dart';
import './pages/test.dart';
// import 'package:widgets/base/pages/day2/listview_future_page.dart';
// import 'package:widgets/flutter_action_2/chapter2/state_page.dart';


void main() => runApp(const MyApp());

// #docregion MyApp
class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: '测试',
        debugShowCheckedModeBanner: false,
        theme: ThemeData(
          colorScheme: const ColorScheme(
              primary: Colors.black,
              secondary: Colors.green,
              background: Colors.white,
              error: Colors.red,
              brightness: Brightness.light,
              onBackground: Colors.pink,
              onError: Colors.yellow,
              onPrimary: Colors.white, //字体颜色
              onSecondary: Colors.black,
              onSurface: Colors.black,
              surface: Colors.black
              // all fields should have a value
              )
        ),
        home: const Test()
        );
  }
}
// #enddocregion MyApp
